fixed a bug in test file