Fix machines tests when adding second key