Add test case for simple attack against the validator.

Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>