added unit tests for FormParser