adding and testing array