Add tests for formatted_uri