closing the db verifies expectations