Fixed bugs in sl.warning.formatted - added test class