Added tests along with travis ci integration