resourceloader: Add tests for StartUpModule dep tree optimisation