colour algorithm unit test added