add O_CLOEXEC to test assertions, to handle when it is non-zero