5125ecc222
This fixes some cornercases and makes the test a) properly data-driven (don't use 'today'). b) much more extensive. This also removes some duplicate code and fixes some bugs in the actual model it tests.