Added basic unit testing and travis CI.