Fix tests & use Travis

Added Travis support for tests.
why should cpu block here?