Refactor parameter decode and request, pass cob spec params test