Move unit test for JsonSerializer to serializers directory

The test for the RESTSerializer already is in this directory so this changes
adds some consistency.