Fix errors in accuracy test