Added test for encoding float values.