refactor test utils into clean_test.go