issue #2404:Add more deprecated function and modify some test sample