Fix timing issue in dosgi test