only one expectation for deprecation warning
better expectation messages