fix way to use assertRaises
fix date condition according to code

Cache is cleared for all entry > movement date
as at a cache date D, it contains results from stock
for all line < D