Upgrading to Pester 2.X syntax. Fixing Prototypal object ctor usage.
Cleaning up conditional nesting.
Adding type assignment to fix resolution.