Adding a functional test for anti forgery.

#333 
Can we dump all the unnecessary stuff, and keep the test as simple as possible?