spec roughly mirrors unit tests, update rake and travis config.