Added check of spy.
More invalidate tests.