Some mock stuff for unit testing.