added r2 version of self modifying test