Tests random vectors, and makes sure that encoding/decoding round trip only introduces precision errors below a certain threshold. Pretty confident that the implementation is correct now.
The code still needs testing, but initial toying around suggests that it's working correctly.