TestCase fixes/improvements

Use .remove() instead of close() so we don't hang on to the scoped
session. Add inner transactions to the individual test methods.