Fixed unit test.

Included mock on compound metric configuration test.

signed-off-by: Renan Fichberg <rfichberg@gmail.com>