added new test for #7
refined test for #7