Fix tests on GHC 7.8