test for get and set reference