Don't rely on current buffer
Add a first test case
Run tests on Travis CI