Improved unit tests and lsb_peekjob support