Add some model helpers and tests.
Merge pull request #846 from logoff/genericnetwork/circuitprovisioning

Add some model helpers and tests.