Add test for method ex5. TODO properly form test for multiple returns from array iteration.