Fix for issue 222. Nodes without ports. And a fix for context testing.