updated customer test to incluce empty array check