Working dom tests with webpack