Updated tests.py + added cron sampling to ingesterapi_wrapper.py