Remove unused logic from search and getDurationByNonExistingUserId integration test