Added tests for contains_digits