Made deprecation test much simplier