added tests for #30