Add a new test code. Thanks for XuDi for his help.