Tests for ExtinctionProcessor

I have just written some tests for the ExtinctionProcessor. They all pass, so everything seems fine.

Also, I made the ExtinctionProcessor use the provided EntityFactory, instead of letting the class itself decide which one to use. This makes the class more flexible.
Please consider using the `factory` variable instead. `EntityFactory.instance()` should no longer be used.