Updates tests, so that it works on cocos2d-iphone + JSB