No more confusing exception throwing in test