added Then statement to assert expected url