Added a test case for #567

A simple test case reproducing the exception that occurs when attempting to remove a single document like so:

``` PHP
$document = $dm->find('Document\MyDocument', $id);
$dm->remove($document);
$dm->flush($document);
```