PSR2 compliance.
Adds test coverage for the adapter factory closures.