Test Speed-Up/Threading Bug Fix

Speeds up tests by patch time.time to return a value in milliseconds and fixes threading issues.