Fixed bug.
Created unit test for NumberValidator class.