Does you ssh on instance with created keypair? If note - you do not need this keypair creation(As I can see  - you do not  make any ssh in tests)