fix expectation deprecation; closes #1018
Merge pull request #1020 from duke-libraries/1018-expectation-deprecations

fix expectation deprecation; closes #1018