Tests for ReturnObjectImpl and ArrayList