Fix timedOut and its tests

Uses a dirty hack