Fix test on :selected state