Fix broken unit test.
Change method to protected so unit tests can easily use.
Switch to cos(phi) for power factor status, for more widely used value.
Add unit test bundle for HC.