Add ban and refresh tests and clean up purge test