Added basic tests and prepared for Travis CI integration.