Start thread on demand while initiating session inside @Test