Fix enterprise_key conditional in test.