Add npm tests; add more array manipulation tests