added empty array test