rewrite test manipulator