a few unit tests for form post data recording