Update tests
Use warn method to output an error message