Refactoring ceilometer's tests

Change-Id: I83ab7efcb5684b41d9c51f76d250d846ee1edbdd