fixed path to load rules.json from common dir
fixed path to load rules.json for tests