Fixes for SSH keys API v2. Invalid URL was used for REST service.

It looks like REST service URL was not changed after the switch on v2. The unit test appears to be not working as well as it always valid.