remove test from file with func()