ResourceGroupParser refactor

Stuck with the commented out tests failing.
Is this the correct test?