Fix tests for sqlite Database