Added tests for #81.

Fix is in the phpunit project.