Improve loops testing module to automatically extend rspec for loops testing