Ihac tests

hey @pablocelayes, I added some very basic tests (which I will try to build out over time) and a small change. Please merge if you think it looks good.