Corrected errors and logging in 'search' app tests