Added option to turn audit logging off for unit tests.