Write testcase for #27