added $testdb object and other test suite cleanup