writing tests for the mazesolver