fixed changed test to catch ValueError. Changed add_alpha_to_mapping to raise value error.
small syntax changes.
small changes
Merge pull request #1287 from johnchase/add_alpha

fixed changed test to catch ValueError. Changed add_alpha_to_mapping to ...