Added unit tests for Set metrics.