Fix issue of empty value in rule tests and correct corresponding test cases.