In this particular case it does not matter. Dynamic code can be useful in case we need to test different behavior configurations. I have added evaluation here keeping such possibility in mind, however it has not come to this at the end.
I can convert the test active record class into the static one. I just need a proper place to put its definition. May be inside the test case file?