Correctly generate user_api before tests.