fixes a reference error in test cases