Fix test: extractor needed to be initialised in setUp() so that mock behaviour can be specified