modified test to take the URI as an argument