add BasicIr unit test