Precommit hook runs unit tests too
Fix unit tests

Removed the mapgen test, it didn't actually test anything, just printed out a
map generated using the old generator system.