BUG: period_range gives incorrect output 
- [x] closes #53687
- [x] [Tests added and passed]
- [x] All [code checks passed]
- [x] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file

I couldn't find any test case for `period_range()`, so where should the test case go in? > I couldn't find any test case for `period_range()`, so which should the test case go in?

`pandas/tests/indexes/period/test_constructors.py` done. Thanks @jayendra-patil33 