code to test the conncetion from dragon to diligent