test: fixed close flag