improved TestEnvironment and AEX format
fixing multi-OS problems