The second image is a little subtle. It was hard to properly capture the shadow problem in effect. Zoom in and you'll see what I mean.
The only reason I didn't put an image here is because any image I could've possibly provided would be pointless and show nothing of value. It requires motion to show.
I think that now the commands would look a little something like this in order to work: "/testfor @e[type=(entity type), r=(#)." If that doesn't work, I don't know what would. I'm just saying it may require you to be a little more specific.
To [MCPE Mod] Mega_Spud, thanks. I'm new to this, so I didn't realize I made that mistake. You rock!
I haven't used any shaders. This is the actual effect taking place. The second image does not have a shader, but that's pretty much all I can do. I assure you, there are no shaders and this happened as represented. The only effect is it being captured by another device's camera.