added tests for #10