Updated doc block
Fixed bug in drupal 8 detection
Added a first bunch of unit tests