add protection for missing Zem collection
remove old test code