added draft tests for warning and location