add tests for #301