Unit test array merge JS