[Tests] add test for JobBuilder
cleaning and tweaking and phpdoc