Test spec for regexp arguments
Implementation of regexp argument handling
Removed some unnecessary return statements