add the test case for affected_rows.
Merge pull request #3 from HelloJamesLee/master

add the test case for affected_rows