this is because the regression test is done before the install step, so the library is not there yet
RPATH in xc-regression does include $ORIGIN:$ORIGIN/../lib:$ORIGIN/../lib64 (I suppose CMAKE is adding these?), but the library in this particular case is at $ORIGIN/../
more generically, easybuild could either not use RPATH with test binaries, or run a sanity check on the any test binaries and make sure all required libraries can be found with the relative $ORIGIN paths?