add tests for #99