Add test to ensure desired behaviour described in issue 118 works as expected