Tests metrics background reporting thread

