main.rb test cycle