Migrating tests for src/directive/form.js