Only 3 and 6 digit values are valid. Added test for other cases.