(MAINT) fix broken spec test

- fix broken spec test
- add check for deprecation warnings during spec testing