add tests for last cases