fixed test for sample31