properly treat exceptions in tests