Deprecated api test bug fixed.