Added unittest for enumlib.