adding unit tests for the "purge" module