Parametrized the deprecation test.