Updated so exception raised if trying to create fact for non-existant node and updated tests.