finished check job logic

- added test
- added check on historical average
- tested locally as well