Fixed unit tests for sqlite