added analyze form and tests