Normalize functions in tests.