Added hs test code