Task:
Implement the Stars module under /app/ that provides app.test.stars with the exact default configuration expected by the tests and supports optional customization.
Requirements:
Create a module at /app/test/stars.js (and ensure it is loadable by the test environment).
Define app.test.stars as a constructor (function or class) that can be called with new, and should also gracefully handle being invoked without new by returning a new instance.
Default values (used when no overrides are provided) must be:
autoInit: false
verticeCount: 667
materialCount: 8
systemCount: 24
distance: 1000
The constructor should accept an optional config object. If provided, any matching properties should override the defaults (e.g., config.autoInit, config.verticeCount, etc.).
The created instance must expose the five properties above with the correct values after construction.
Ensure compatibility with both:
Attaching to a global app object (i.e., if global.app exists, define app.test.stars on it).
CommonJS module systems (i.e., module.exports may be used to export the constructor for environments that require it).
No external dependencies.
Notes:
The test suite uses new app.test.stars({}) and asserts the five properties. Implementing the above will make the tests pass and keep the module usable in other contexts.