Fix unittest skip code for travis-ci