add tests for edge cases
Merge pull request #319 from Mistobaan/features/add-more-tests

add more tests for edge cases