Add tests for #293