Test cases for metric feature