adding injection of api service to tests.