Try adding commas to the command:

testfor @a [x=0,y=4,z=0,r=10]