fix deprecates at test cases and seed
Merge pull request #460 from jasl/fix_deprecates

修改了过时的用法