Added unit tests for protected values and binaries decoding.