work main_loop_test.rb