rewrites test