Refined tests verifying thrown exceptions.