tests using deprecated methods refactored