Generalize test to visit URL variants

Change-Id: Ib8783f963a6dfdae06895212927a6b704f91993c