What kind of test you want to perform?
If you want to test if you can read and write to it. you need some ways to compare the read and write data.
Of course you can design that in complete logic but some kinds of CPU control would be easier.
Retrieving data ...