refactor cst test