Since you are doing these checks, it feels like a unit test would be a better fit. But let's see what @karlnapf thinks.