Added condition for filter in job must be executed

- Added more test for api