Modify tests to support travis-ci

DESC: C