added testcase for twe.rb