unit tests for issue 3065 http://www.cocos2d-x.org/issues/3065