Added regression testing to the bug for #168