adding new  test for java and ruby, and refactoring
adding new  test for java and ruby, and refactoring

iron-io/iron_worker_ruby_ng,iron-io/iron_worker_ruby_ng,iron-io/iron_worker_ruby_ng,iron-io/iron_worker_ruby_ng,iron-io/iron_worker_ruby_ng,iron-io/iron_worker_ruby_ng,iron-io/iron_worker_ruby_ng