tests for resource params and prepare_serializer_for_format