Remove a deprecated warning
BugFix: fix a test code bug