add tests for #46