tests: assert_queries_count behaviour changed

it now returns function result when everything is ok
tests: test_admin_settings_list query counting added