Added setter functionality to the val() method and update unit test for Integer
and Boolean tests.