arrays extended and unit test