make github test work
refactored tests, added travis.yml