Add missing import Data.Functor to tests/Main.hs