add tests for #3919