Finished tests for GenProc
- Fixed parameter order bug
- Removed the IsOptional check