improved reference selector test example