Add tests for "dirMode" option