georesolver: Add some unit tests and fix bugs found in testing