alternate way to deal with testing 'warn' functionality