The recent test refactor wrapped the adjacency check in a `retry`, however, the `check_adjacent` function had an `assert` in it, which meant that the test would fail immediately and not be retried. This commit moves the assertion out of the check, which also allows for improved code reuse. Signed-off-by: Lucas Servén Marín <lserven@gmail.com>