* align test cases * fix function formatter Former-commit-id: a68f5e22d0391c80a9a826dc83967255be572032