Used to make sure that profiles that share a common generated path still build properly.
Also fix tests for Firefox module derivatives.
Split off from #5697, organizes firefox tests by submodule. This is intended to match directory structure setup for the new search submodule.