Adding more tests from Openclerk tests\DbTest.php