added tests for ColorDecomposer.
changed getIntFromcolor to public method.