Uses better test assertion method to detect exceptions