The former boss of blood testing company Theranos is accused of fraud and could face years in jail.