Added tests

Added tests for the following cases:

* Mallformed cgroup file
* Missing cgroup file
* system juju is running on is not linux