add test case for ambient enum