Added tests.
Adding continuous integration.