Creating new testcase for IntegerField and Refactoring the IntegerField class