fix access error in test