Added all test cases needed to test method getNumber. Added method addModifier.