basic js array tests (no convergeance test)