add test
fix bug. When running on windows, pass '/' directory separator doesn't work.