Fix test suite compilation

Probably an issue of different GHC versions or something, but this patch is necessary for the test to build on my system.