Add unit tests for utility metrics