Finishing test query for cron dev (will move to lib later)