Added tests for reference