fix unit tests and a bug in clonejobs wrt updating background repo
delete unused test files