Fixed undefined alpha

I was comparing to null but should undefined
Added test for fromHex
Updated test for fromHex
v0.3.2