Improve test mode

Current implementation has hardcoded test mode.

Improvements: 
- added `Test mode` switch to admin area;
- removed hardcoded value in the lib;
- fixed `getmode` method name to match the declared one (`getMode`);