Fix unit test

Test used old state properties and were replaced with job configuration.