fixed deprecation in test