Added tests and documentation for Array