test for reference error