fixed various typos and rpsec tests