Fixes the function definition with the proper check in test revision for
integer value case