tests of id in ref