added tests and support for travis as well as scrutinizer