New tests. Work in progress.
If the formRef argument is null return false.
Some minor tweaks.