remove deprecation warning in a test

change should to expect