Adds mockLayers method to abstract test case, gets rid of global layers fixture injection.