Refactoring in test file for UINumber component