Convert PathautoUnitTest into KernelTestBase type. A few fixes.