This is still inside core and is solely used for testing. Perhaps if it's in core and for testing it should be in the /src/test/ folder?

If it's intended for use in production code then perhaps another contrib module for testing capabilities?