Tests for the run function inside the select loop