fixed test for random values