Sure, but I'd rather put these functions & objects in a dedicated module where some factory may create them according to some configurations passed, and could therefore be used either in the app or in tests