Add state neighbor detection test