Initial tests

Added tests and Travis-CI config