Fix a bug in test code #48