Added tests for user model, cleaned up api response class