Added missing beforeEach(module()) to test

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