docs(tutorial): add missing beforeEach(module()) to test

Test snippet was missing this necessary statement that was present in the sample code.

Closes #5743