Move unit test for JsonSerializer to serializers directory

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