t5: added tests to form validation