Adding a functional test for anti forgery.

#333 
thanks!