skip tests of deprecated features except when releasing

It seems normal install doesn't necessarily need to test deprecated features. It leads to ugly test warnings.