Added test coverage for edge case