no need to restore_rights any more in tests

from ruz++: it's from dates when tests were re-entrant.

besides, it fails on sqlite
Merge branch '3.0/cleanup-restore-rights-in-tests' into 2.9-trunk