Fix tests for sqlite