fix a bug in new school panel, add new test suite