fix for test mode detection
Merge pull request #16 from MASGAU/develop

fix for test mode detection