Fix job#build method when true/false values are passed as timeout parameter

Defect found few days ago. Only today I had a time to fix it and implement a few tests.
I didn't understand very well the test examples and how to better organize them. Please consider a time to review the strategy I took.