Fixed a bug in test.d