Fix for paged object not being removed after pages deleted in rspec test.