Make tests compatible with older versions of sqlite