small fixes for sqlite tests on jenkins
merge from lp:openpetraorg