Issue #4294: Fix bug in Cocostudio test and DoubleSprite test