fixed issue with sqlite write test