Added tests for contains_digit