add tests for #2