Bug fixed: affected_rows()
TestCase development