Added unit tests for conversion accuracy and behavior amongst sample
types and floats.
Added tests for both double and float conversions. Just to be sure.