Harden Detached test against some randomness as per #225 via @pietermartin