integration test
fix enum bug