use work.test_common.all;
Changed the line use work.test_common.all; to use work.rio_common.all; which solves the problem.
The previous correction was for TestUart.vhd.
Also corrected the TestRioPcsUart.vhd which also contained the error.