Added Session\Bag unit test and specific test for #1895