Update repo viewing from an external context; update test cases (issue #2)