Update connection.rb to clear rubocop warnings

Change-Id: Ifdfc4c9ef719f6cd3bcaee356ed6db4a2a5850c9
Add negative unit test for session.org method

Change-Id: I436b539c18b2e299a3d8f847fb2de150067b6212