Fix tests when Moose is not installed.