Fix inline entity form, with tests.