added test cases
added travisCI.