Written unit test for adding SSH files and slight refactoring of the existing test