added unit test for fix to issue #286