removed useless and broken test in scheduler_test
implemented function to find jobs that should be run