Adding further tests and refactorings to the myjobs search