Tests!

Also, Travis and Coveralls.
Nicer badge.
Merge pull request #1 from oscarpalmer/tests

Tests