Unit test for maze.