@Snapey the value should come from the enum, and enum has five entries, so the enum has values 1, 2, 3, 4, 5. So I need to work with these values and somehow make parallel testing not to run into the "duplicate" error.
@dmag What little I know of your app shows a number of code smells
Why would you have a model and table with enum in the name, this is not what is expected of the concept of enum and will be confusing to anyone else looking at the code
having a table whose primary key has to be supplied by a separate model is a smell
having a function `getRendomValue (ignore the typo for a moment) that can only return the values 1 to 5 seems ill conceived.
clearly a 'random' range of 1 to 5 is not going to allow parallel testing of more than 1 or two tests
Show your code for generating random 1 to 5 entry? I'm sure its not atomic.