Add attribute to convert assert_raises
Fix parser to parse only retained attributes.