We should verify a lot more than just the encoding of 1.0!  For example, test the encoder with a value that should create a representation correctly for the next bucket. In addition the encoding for a value just less than that should lead to the same encoding as 1.0.  Etc.