refactor rgb_to_lab_test to unit test