[#40] Fix error during loading of enums.
[#40] Tests enums