Fixing doctest predictability