add some unit tests for unit and territory