Add isArmstrongNumber method with tests.