Group session ids by address
Add makeUnique session method

It deactivates all active sessions for this address, except for current
instance.
Reorder tests