Adding a functional test for anti forgery.

#333