Typo.
Fix Travis build
Add tests for limit

Improve test coverage too