fix some issue with newer RSpec
expose dispatcher and connection interface to RSpec testing script