Fixed purgeTest

Changed it to the correct method name.
Didn't find any clues that purgeWorkspace would be the correct one instead of deleteAllNodes.