Change assert method in test/index [ci skip]