fixed test cases for sqlite3 and mysql