chore(core directives): Refactor test setup