fixes #3: remove invalid test cases
#3: add config for travis-ci
#3: bug fixes; add test cases