Tests for HRepository