Sqlite version of this test, doesn't work