fix test case by allowing comparison of references