more convenient number building -- refactored tests