Adds tests to array.js functions - Fixes #30