adding test framework

Tweaking travis setup