Refactor tests and added Travis CI service configuration files