Add tests for GCM bug