Fix D test suite and add it to Travis CI

It is required for changing the working directory.