added fix for addEventUnitTests to deal with admin privileges