Added support for test mode
Merge pull request #13 from aquilax/test-mode

Added support for test mode