Changed the SentryTest to use the new function