Fix tests

Fixes the naked `rspec` command and resolves some deprecation warnings.