add spec to make sure the responder does not serializes the object attr when nil