minor fixes in the connection example
fixed some qunit tests