Added tests for references