Prepared testcase for arrayoutofbounds exception