Another way to say "Sometimes taking a test causes failure" is "Failure can result from taking a test."