Adding JSON serialization tests