test(core): working tests

Adding the afterEach to clean the previous generated markup, tests
passing.