Added support for Travis and unittests.