add tests for #45