add test for PNJSONSerialization class