Fix test procedure