clean up reference error tests