Cleaned up code. Renamed create_request to create_session.
Added and updated fixtures.
Added tests for 'api'