Adds test to check for correct number of digits and containing invalid characters