fixing values in enums, adding additional tests (part of pyfarm/pyfarm-master#30 but for pyfarm.core)