Add a test task

This commit adds a test task so that travis can build and test the
project properly.