added new tests for github issue 189