[x][test code refactor]