refactored deviceId to userId and fixed SearchActivityTest