Added tests thereby showing some of the benefits of dependency injection