Add a testing method to open a activity with a uri

This can be used in the test to check if the activity can manage
different file formats.