check ack mode correctly on createSession
use compare on netty version check, avoiding cases like https://bugzilla.redhat.com/show_bug.cgi?id=923646
test for null topic
new test