Fix typos and add a simple unit test for the IR nodes.