add test for judging page, and fix mismatched bracket problem