confirm deletion, RSpec tests for collections and fixed a bug with the Query/Delete button