Add tests to colors service

* Refactor rgb to hex function