Add a base url to facilitate testing
Add some unit testing support, unit tests for domain functions