avoids random factor in test case