covering api_methods with tests