Fixed spec: beforeEachFunc was not executed.