Fix crash test and init form tests.