Added tests for serializer