test: fix deprecation