fixed job offer search and implemented some tests