Add test ensuring addslashes

This commit adds a test that ensures slashes are escaped in attributes.