(MAINT) fix broken spec test

- fix broken spec test
- add check for deprecation warnings during spec testing
Merge pull request #541 from anodelman/maint

(MAINT) fix broken spec test