make the simplify test function general purpose so others can add other test cases for other simplification algorithms