Added a unit test for purge status