added unittests for resolveSource() hook option & root-as-array option