Make sure all writes are only done if not a test