test code for application session creation