[web] Move split test helper methods to a separate file GitOrigin-RevId: 9bcb429f2debf8f7ff4b071e32c9cf0038459b97