Tests: Using new sys.capabilities

instead of cc.config.platform