update tests to build and teardown database server