fix rspec deprecation warning, added before_destroy callback