Fix import node

Fixed ordering of child nodes. Added unit test.