Test exit with wrong code

https://www.drupal.org/node/2189345