fix bug backup properties were not translated to backupEnvDef because of makeEnvDef order of checking. Also, added tests for EnvDefs