Add waiting times when adding key in Shell tests