add test for reference