fix compile error in test