ScalarCodec - added representation correctness test