added unique constrainst to audit_application.name, and some unittest improvements