StringExtractor unit tests

Unit tests to cover StringExtractor in advance of minor new
functionality & minor refactor