Test case for bad node count in a callback

Test case to reproduce LP #1078368. When node-deleted-inview callback is
called, get_n_nodes() should be already decreased to the correct count
of tasks.