Oh, right - the first part shouldn't have been there - entirely my fault, I was thinking about something else and got distracted. Perhaps it will teach me to read over what I've written before posting in future.
You also miss the point - well a little bit anyway. We have free will, so are at liberty to choose whether or not to follow the rules laid down by God. God may well know the outcome, but the choice is ours to make.
It's easy to become complacent, so the point of the testing is to exercise faith. For most believers that happens in small ways, enough to keep their hand in as it were, so that should they ever have to face a major test of their faith they have at least a reasonable chance of keeping it.
Oh, and as I recall Job, Satan tells God that Job is only faithful because he is cosseted and that Job would lose faith if really put to the test, whereupon God gives Satan permission to do his worst.