test: added tests for #3

fixes #3