Add tests for the audit log related stuff.