Fix AppVeyor builds

The class imports were incorrect, and tests were failing on AppVeyor.
Merge pull request #4444 from cakephp/fix-windows-build

Fix AppVeyor builds