Clean up DBSession when used in tests