extend tests for base form context and public application form, plus implement associated minor enhancements to form context code