add tests for dotNotation if sub is set to true