Added 100% test coverage and fixed some bugs in the Enum class.