fixed test cases.
added travis-ci