add tests against empty containers.  invalidates #561