fixed test with number generator