Port test.sh
to platform independent D.
#551
Merged
test.sh
to platform independent D.
#551