>You dont test microseconds, you want time() to return always the same number when you call it.
And it's possible to redeclare any function inside the current namespace 
function time(){return 42}