static cast for enum to int conversion
Update test for entrymodel