Fix tests to work with ProtectedBinary
Implement ProtectedString class