Removed unused mockito dependency
Small changes, such as unused import and incorrect waitingjobList