Renamed inst() to makeInst().  Added unit tests for h.attach()