add some tests for local.dir

some tests for local.dir to test the current state in order to avoid regressions