add tests for digitExtractor