Refactored test_responsetypes.py to be more straightforward
fixed a formatting error