Fixed some asserts by using more appropriated `TestCase` methods.