added test collection metrics calculation