Unit test for colour conversion