Fix test bug