Fix failing test on desktop
Fix #287 #290 Fix several significant GCM bugs