fix bug in test configure