functional tests for forms and encapsulation