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.
Adds support for Firefox forks by introducing methods that create generic configs and options. Additional configs and options can be added in separate modules.