Comparing what happens to what should happen in unit tests