Using an assert to fail the test properly instead of hiding the error in the log while still passing the test.