Small improvements in the RESTful form service.
Added some test cases for the RESTful form service.