added tests for #38