add tests for cornercases