Fixed sqlite tests