WIP TST more sample invariance test
WIP TST adapt test for sample based metrics
TST finish to add invariance test for sample based metrics