fixed unit test for sqlite