Added functional test for _form route to the SimpleTest test, and moved chunks of WebTestBase and BrowserTestBase into WebTestTrait.