Updated to Drupal 8 beta 1. Added tests.