testing array out of bound