Add HAL unit tests