Added a few test cases of getNumber method.