Adding tests and implementation for setRandomColor