Automation fixes for auto search org and location, fix for computeresource tests.

It's rarely a good idea to raise a raw `Exception`. It's better to raise an `Exception` subclass.