Fixed warnings in tests due to deprecations
Merge pull request #1071 from denadai2/warnings2

Fixed warnings in tests due to deprecations