rechanged buildTestdb to old way