add tests for #242