Add test for magic_cast error message
Use the messages framework for magic_cast view