use DIRECTORY_SEPARATOR instead of /

use DIRECTORY_SEPARATOR instead of / in tests.

see #896