Fix the way we compute cpu_load average and add tests for it

Change-Id: Id9e05c753f41dcd94d5a4734ac39f90581ddc0c0
Signed-off-by: Martin Sivak <msivak@redhat.com>