add new test hoof.pl code
fix warning related to implicit bool conversion in VC++ - @stef145g