[feature/alt-session-storage] Add map_with_time test and fix

Map_users_with_time had an empty test before,
and the function did not seem to be working properly.

PHPBB3-11705