correcting behaviour of test close