Add Test cases and Travis-CI