Replace query and aget batchtime with \OC\Preferences
Add a user that has no batchtime setting
Remove unnecessary parameter from tests