added basic unit test convenience method
test for #1101