Fix sqlite adapter for tests