Removed unneeded prints from test.
Refactored the identify_preview_location to use just one try block.