Unit test to ensure the bug fixed by e1343c72761655d8f029f28cd346db6c601ab5ad doesn't come back - related to #155 & #171