Added unit test for percent type.
Added explicit conversion if type of the data is stored as an integer.
Fixed comparison.
Fixed copyright.