Fixed SQLite tests

Ref #261