Added regression test for Issue#38 and failing test related to Issue#50.