Issue #4294: Fix bugs in Cocostudio tests