fixed poorly written Array method, more rigorous tests