fix test with GCM buffer