Fix specs for key_gen and remove key_file.rb