updated queue tests to include purge test, and reenable removeIfEmpty test
provide purged signal, other small cleanups