created stats template, new unit tests

added unit tests:
- addpool
- removepool
- enablepool
- disablepool
- stats
- restart
- privileged
0.3.7
add template and test for CHECK command
0.3.8