fixes doctrine/common#326
moved assertions into a new test method
Merge pull request #38 from janschoenherr/master

fixes doctrine/common#326