Add tests to ssh_authorized_key provider and fix