cb5b80711c
New test case written by @duncaen, with some tweaks from myself to verify expected behaviour. Close #205