- Fixed the formatting of warning messages
- Added test to check if appropriate warning messages are issued