Add DB2 extent function test, misc cleanup