test-lib: extend test_decode_color to handle more color codes