fixed error message
added SQLite test cases (issue #312)