[api] fix TODOed test case for code quality