Added tests for node purge. Fixes #15.