pass parts of rules and db tests

TODO：varibleType tests