Apple tests technology to control gadgets with the power of thought