created check_expect for testing; tested generate_neighbours using check_expect