Change JavaSerializerTest, since String output differs on different platforms