[core] Fix some tests; Prepare for installation prefix revamp