Added test code for double and integer
Added comments