improve neighbours test