Add test setup.
Add mocking for tests and simple test case.
Add tests for updating sources.
Add tests that the update command writes into the files.