Add a test case which fails without deep equality check in enum