Fix ruby warnings in tests
Use ||= to assign UniqueJob settings

Fixes ruby “instance variable not initialized” warnings