Was given almost a full 4 hour test testing programming, personality etc. Was told out of 50 candidates, only 2 had actually mustered a passing grade. I hadn't, but still got the job. The tests don't always relate to the positions, so don't be defeated by them.