Test headnode deletion more

Test that deleting a running headnode works correctly.