tests: Make mediarttest work as both installed and built test