finished api test coverage