Add tests for Sources().install.

Includes standard refactoring and flake updates as well as additions to
fixtures and mocks.