SCHEMA-249. Fix leak of Kiji references in Kiji.openTable().

 - Beef-up testing base classes.
 - Fix leaks in some tests.