Normally, ROM has to be intialized for synthesized code, either from a file or in an init block. Why not use the same initialisation in the test? It's part of the design and should be tested in the simulation anyway.
Apart from this standard method, a ROM can be forced in a testbench as any signal.