Added tests and travis integration