[ticket/11620] Move check_ban_test functions to setUp/tearDown for clarity

PHPBB3-11620
[ticket/11620] Whitespace and combine function into test_case

PHPBB3-11620