solution to putting in_test in test_file environment