fix unit test and report travis-ci