add tests for #179