Rewrite Error test