test case added

Crashes in this (edge) case.
Unit test added.