Replaced deprecated methods in NumbersTest