simplify unittest impl