Fix read of uninitialized enum value in test, caught by UBSan. No functionality
change, other than removal of undefined behavior.