fix session creation

* remove buggy call to con.createSession(transacted, ack) in setup()
  that was overriding the session created depending on the connection
  factory type.
* fix if blocks to have a default else block for the AGNOSTIC type