Update unit test for JForm
Merge pull request #3309 from wilsonge/formtest

Update unit test for JForm