Fix tests for GHC 7.6