[ticket/11810] Add more basic tests: 11 / 22 written

PHPBB3-11810
[feature/session-storage] num_sessions functions should return number

Previously these functions returned an array containing
the result, but they are modified to return the actual result
like they were before the storage abstraction.

PHPBB3-9733
Merge branch 'feature/session-storage' into ticket/11810