Added test helper method to facilitate valueparsers that have required options

Change-Id: I83216e30da861067339aa1c5abc1dc884c01f4ab