[tests] Small refactor
[tests] Small refactor

Extract object creations to separate methods.

apardo/nolotiro.org,alabs/nolotiro.org,alabs/nolotiro.org,apardo/nolotiro.org,alabs/nolotiro.org,alabs/nolotiro.org,apardo/nolotiro.org,apardo/nolotiro.org