Added unit test for Hasta protocol