tests for regex argument parser