fixed sqlite tests, not very nice, but should work