New implementation in src/test.js