Updated tests to make sure that objects are not accepted as parameters for external URI generation