[#23] Turn some errors into more descriptive warnings, and improve tests