SSH key add tests

Tests to ensure add_user_public_key is correctly catching successes and failures.

@mpdavis please review