Refactor: Use helper function for obtaining regs
Refactor: Introduce fn to launch proc and run test