solved bugs to run test_file_banning.py