How do you write unit tests for code with difficult to predict results? | Hacker News Reader