rename it to `mockApplication($config)`?