setting up real tests of rewrites