Refactoring dependency loading
Properly working react tests