[api] fix testcases for new attribute