Add regression test case for ticket TANAL-27