Tests for WebsessionManager

Working out how to use MiniTest mock. Seems OK for this job.
Going to use it now while I write the tests for all the other classes.

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>