Adding test for issue http://www.cocos2d-x.org/issues/2401 .