cleaned up reference test