Add Test cases

-Add Test cases
-Rev version
-fixes issues found through test cases
add travis support

add travis file