Added tests for the javax.servlet.http.registerSession feature

Note that this introduces another test failure on GlassFish 4. It seems fairly likely this is a bug in GlassFish, but I'll ask Ron Monzillo to be sure.