rewriting of tests