tests for resource params and set_serializer_for_format