fix for ndb in-context cache bug when testing, fixes #3