fixed sqlite related tests