add a manager for play session and some unit tests for it