add qunit cases, add some new rules