Added simple unit test for Reference