Ticket/11543 Add unit tests for obtain online functions

http://tracker.phpbb.com/browse/PHPBB3-11543