Adding warning and test