Unit test explode JS