refactors injector specs to better structure