The clearFormValues method is implemented to be able to clear form
values for selected fields.
Tests are now separated from pre-submit to querying the submitter.
The tests do not depend on separate files for loading templates. This is
for the layouts to be defined alongside the tests for easier updates.
The methods have been refactored and documented for ease of use of the
consumers.