added travis ci support
refactored tests for travis