The best time to write tests was 20 years ago. The second best is now, provided you've applied to all the companies with better culture.