fixed job tests. still problems with ptywrapper