added unit test to verify behavior for #2756