Added tests and travis support