done before test