Tests

I've rewritten the rspec tests and prepared it for automated testing. So far last 3 tests won't pass because of ssh-keygen mocking. Any idea how to fix it?