Added test deprecation record and fixed existing tests.
Made sure (un)deprecation is taken into account if payload waits a while for processing. Added missing specs for new deprecation mechanism.
Missing test info model spec for deprecations association.
Missing license header.