added trim to remove spaces from uri in test case