weighted metrics tests fixes