New API: cache is invalid by using on_change on one2many field

This pull request add a new test about on_change on one2many field.

The method convert_to_cache deletes the line modified and all previous lines from the cache.
The new test fails because of that.