Added isNodeRedColour(), added another two test codes