added tests for device for_each()
added tests for device for_each()

--HG--
extra : convert_revision : svn%3A83215879-3e5a-4751-8c9d-778f44bb06a5/trunk%40548

sarvex/thrust,xiongzhanblake/thrust_src,mohamed-ali/thrust,zeryx/thrust,thrust/thrust,zeryx/thrust,egaburov/thrust,jaredhoberock/thrust,andrewcorrigan/thrust-multi-permutation-iterator,marksantos/thrust,zeryx/thrust,Ricardo666666/thrust,raygit/thrust,thvasilo/thrust,xiongzhanblake/thrust,Ricardo666666/thrust,xiongzhanblake/thrust,raygit/thrust,zhenglaizhang/thrust,arnabgho/thrust,sarvex/thrust,GrimDerp/thrust,thrust/thrust,thrust/thrust,xiongzhanblake/thrust,marksantos/thrust,GrimDerp/thrust,sdalton1/thrust,zhenglaizhang/thrust,jaredhoberock/thrust,thrust/thrust,sarvex/thrust,egaburov/thrust,mohamed-ali/thrust,dachziegel/thrust,Ricardo666666/thrust,arnabgho/thrust,jaredhoberock/thrust,andrewcorrigan/thrust-multi-permutation-iterator,mohamed-ali/thrust,xiongzhanblake/thrust_src,thvasilo/thrust,sdalton1/thrust,sdalton1/thrust,egaburov/thrust,GrimDerp/thrust,andrewcorrigan/thrust-multi-permutation-iterator,jaredhoberock/thrust,xiongzhanblake/thrust_src,thrust/thrust,marksantos/thrust,zhenglaizhang/thrust,raygit/thrust,dachziegel/thrust,arnabgho/thrust,thvasilo/thrust,jaredhoberock/thrust,dachziegel/thrust