Test rpath handling