More tests for conversions and encoding.