added tests for api_initializer