Add test case for #21, thanks to Hal