Move RP parameter validation tests into validate_rp_params.js
Extract method on rp parameter validation into validateRpParams and kpi publishing into publishKpis.