replace deprecated should with expect