more tests added for edge cases