writing unit tests for hw collector