fixed tests for api_user