add attributes to the serializer and tests