Lint tests' code with hlint

The travis build should now pass.