Fix tests in GHC 7.8