Fix direction of deprecation enforcement test