Tightened up the adjacent position test