myrial_test: remove replace_with_repr to utility file

This at least encapsulates importing everything from the project
in its own file.