test(enum): Add test for enum with point (fixes #4993)