Niceties to make unit testing easier.