Added tests for warnings