add more unit tests for required directive with custom enumeration