added buildTestDB function
build test db