Fix SQL adapter tests