Add spec to test supervisor class injection.