implement base tests; fix form model issue