Now has init() method to reduce boiler plate code for application setup

Fixed tests