Add test_mode parameter.
Merge pull request #5 from groodt/master

Add test_mode parameter.